Skip to content

Handle sendKeyPress events for temporary integrated consoles #3951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2022

Conversation

andyleejordan
Copy link
Member

The first commit removes our custom named pipe debug adaptor. It was used primarily for logging, but until we actually need to log at these logs, let's reduce code complexity and rely on VS Code's built-in implementation.

The second commit registers a handler to send a key press to the spawned temporary integrated console. Note that the DAP specification is slightly different from the LSP specification. In PowerShell/PowerShellEditorServices#1791, we use the same sendNotification, which comes across DAP as a debug session custom event (not a notification).

Note that we seem to only support one temporary integrated console / process at a time, though I don't see anything explicitly calling that out.

Fixes #3950.

@andyleejordan andyleejordan requested a review from a team May 5, 2022 18:07
@ghost ghost added Area-Debugging Issue-Bug A bug to squash. labels May 5, 2022
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andyleejordan andyleejordan merged commit a13d87c into master May 5, 2022
@andyleejordan andyleejordan deleted the andschwa/fix-temp-console branch May 5, 2022 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Temporary integrated consoles stuck waiting for key press
2 participants